package me.zhengjie.vo;

import java.math.BigDecimal;

/**
 * @Author: Chenwei
 * @Description:
 * @Date: Created in 2021-03-25
 * 计息返回数据
 */
public class InterestVo {

    private BigDecimal thatYearInterest = BigDecimal.ZERO; // 当前年度利息

    private BigDecimal otherYearInterest = BigDecimal.ZERO; // 跨年利息

    private BigDecimal allInterest = BigDecimal.ZERO;

    public InterestVo(){

    }

    public InterestVo(BigDecimal thatYearInterest, BigDecimal otherYearInterest, BigDecimal allInterest) {
        this.thatYearInterest = thatYearInterest;
        this.otherYearInterest = otherYearInterest;
        this.allInterest = allInterest;
    }

    public BigDecimal getThatYearInterest() {
        return thatYearInterest.setScale(10, BigDecimal.ROUND_HALF_UP);
    }

    public void setThatYearInterest(BigDecimal thatYearInterest) {
        this.thatYearInterest = thatYearInterest;
    }

    public BigDecimal getOtherYearInterest() {
        return otherYearInterest.setScale(10, BigDecimal.ROUND_HALF_UP);
    }

    public void setOtherYearInterest(BigDecimal otherYearInterest) {
        this.otherYearInterest = otherYearInterest;
    }

    public BigDecimal getAllInterest() {
        return allInterest.setScale(10, BigDecimal.ROUND_HALF_UP);
    }

    public void setAllInterest(BigDecimal allInterest) {
        this.allInterest = allInterest;
    }
}
